package ifmo.compiler.task21.parser.symbols;



public class Terminal extends Symbol {
	private String _lexval;
	
	public Terminal()
	{
		super(SymbolType.Terminal);
	}
	
	public Terminal(String value) {
		super(value, SymbolType.Terminal);
		_lexval = value;
	}

	public boolean equals(Object obj)
	{
		if (obj instanceof Terminal)
		{
			return super.equals(obj);
		}
		
		return false;
	}
	
	public String getLexval()
	{
		return _lexval;
	}
	
	public void setLexval(String value)
	{
		_lexval = value;
	}
}
